main parts of expert system